﻿@* Copyright (c) Maarten van Stam. All rights reserved. Licensed under the MIT License. *@
<div class="navbar px-3">
	<div class="container">
		<div class="col-md-2">
			<button @onclick="@(() => MoveToPage("/"))" class="btn btn-primary nav-addin"><div>Content controls</div></button>
		</div>
		<div class="col-md-2">
			<button @onclick="@(() => MoveToPage("/quotes"))" class="btn btn-primary nav-addin"><div>Quotes</div></button>
		</div>
		<div class="col-md-2">
			<button @onclick="@(() => MoveToPage("/helloworld"))" class="btn btn-primary nav-addin"><div>Hello world</div></button>
		</div>
		<div class="col-md-2">
			<button @onclick="@(() => MoveToPage("/requestcontextdemo"))" class="btn btn-primary nav-addin"><div>Request context</div></button>
		</div>
		<div class="col-md-2">
			<button @onclick="@(() => MoveToPage("/interactwithparagraphs"))" class="btn btn-primary nav-addin"><div>Paragraphs</div></button>
		</div>
	</div>
</div>

@code {

	[Inject]
	public NavigationManager NavigationManager { get; set; } = default!;

	void MoveToPage(string page)
	{
		NavigationManager.NavigateTo(page, true);
	}
}
